import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/todolist_v2',
    redirect: '/todolist_v2/login'
  },
  {
    path: '/todolist_v2/login',
    name: 'login',
    component: () => import('../components/login.vue')
  },
  {
    path: '/todolist_v2/index',
    name: 'index',
    component: () => import('../components/TodoList.vue')
  },
]

const router = createRouter({
  routes,
  history: createWebHistory()
})

export default router
